package com.example.demo.design.creational.factorymethod;

/**
 *
 * 具体工厂1：实现了厂品的生成方法
 *
 * @author luowj12
 * @since 2021/5/6 16:31
 */
public class ConcreteFactory1 implements AbstractFactory {

    @Override
    public Product newProduct() {
        System.out.println("具体工厂1生成-->具体产品1...");
        return new ConcreteProduct1();
    }
}

